/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.dcpApplication.question1.inheritance.inheritanceImpl;

/**
 *
 * @author spheshie
 */
public class MyMultimedia extends Computer {
  
    private int cdRomSpeed;
    
    public MyMultimedia() {}
  
    public MyMultimedia(int sp, int pr, int cdRom)
    {
        super(sp , pr);
        cdRomSpeed = cdRom;
    }
  
    public int getCdRomSpeed()
    {
        return cdRomSpeed;
    }
  
    public void setCdRomSpeed(int cdrom)
    {
        cdRomSpeed = cdrom;
    }
  
    public String toString()
    {
        return super.toString() + "cd-rom speed is:" + cdRomSpeed;
    }
    
}
